﻿<%@ Page Title="发送邮件" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Email.aspx.cs" Inherits="StoragePeriod.Web.Email.Email" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
 <style type="text/css">
    .layout{ background:url(../images/images_59.jpg) no-repeat;}
    .left-cloumn{display:none;}
    .right-cloumn{width:944px;}
    #sms_title_li_0{ background:url(../images/images_55.jpg) no-repeat;}
    .Left_Search{width:190px;padding-left:10px; height:30px;border-top:1px solid #ccc;}
</style>
 <script type="text/javascript" src="../Scripts/jquery-1.4.1.min.js"></script>
 <script type="text/javascript" src="../js_bianjiqi/xheditor-1.1.14-zh-cn.min.js"></script> 
 <script type="text/javascript">
     $(document).ready(function () {
         InitXEdit();
     });

     function InitXEdit() {
         $('#elm1').xheditor({
             tools: 'Fontface,FontSize,Bold,Italic,Underline,Strikethrough,FontColor,BackColor,SelectAll,Removeformat,Align,List,Outdent,Indent,Link,Unlink,Img,Preview,Print,Fullscreen',
             skin: 'vista',
             showBlocktag: true,
             internalScript: false,
             internalStyle: false,
             width: 636,
             height: 294,
             fullscreen: false,
             sourceMode: false,
             forcePtag: false,
             upImgUrl: "../upload.aspx",
             upImgExt: "jpg,jpeg,gif,png"
         });
         var html = document.getElementById("MainContent_txt_centent").value;
         $('#elm1').val(html);
     }

     function CheckMessage() {
         var person = $('#MainContent_txt_Staff').val();
         var content = $('#elm1').val();
         var title = $('#MainContent_txt_title').val();
         $("#MainContent_txt_centent").val(content);
         if (person == "") {
             alert("请输入收件人！");
             return false;
         }
         if (title == "") {
             alert("请输入主题！");
             return false;
         }
         if (title == "") {
             alert("请输入主题！");
             return false;
         }
         if (content == "") {
             alert("请输入内容！");
             return false;
         }
         return true;
     }
 </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainLeft" runat="server">
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="MainContent" runat="server">

<div class="sms_title">
    <ul>
        <li id="sms_title_li_0"><a href="Email.aspx" style="color:#f90;">写新邮件</a></li>
        <li><a href="MyEmail.aspx">收件箱</a></li>
        <li><a href="SendEmail.aspx">已发送</a></li>
    </ul>
</div>
<div class="sms_main">    
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <div class="sms_right">
                <h2>联系人</h2>
                <div class="right_Stafflist" style="text-align:left;">
                     <asp:TreeView Width="100%" Style="overflow-y: auto;" Height="370px" 
                         ID="PersonnelTree" runat="server" SelectedNodeStyle-BackColor="#999999" 
                        ExpandDepth="0" SkipLinkText="" CssClass="tvTreeViewck" >
                     </asp:TreeView>
                </div>
                <div class="Left_Search">
                    <ul>
                        <li><asp:TextBox ID="txt_search" runat="server" CssClass="input_txtSearch" style="width:120px;"></asp:TextBox></li>
                        <li><asp:Button ID="Btn_Search" runat="server" CssClass="btn_search" onclick="Btn_Search_Click" /></li>
                        <li><asp:Button ID="Btn_Select" runat="server" Text="确定" CssClass="btn_2" OnClick="Btn_Select_Click" /></li>
                    </ul>
                    <div class="clearboth"></div>
                </div>
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
    <div class="sms_left">        
        <div class="maincontent">
            <table width="700" cellpadding="0" cellspacing="0" border="0">
                <tr>
                    <td width="55" height="36" align="right">收件人：</td>
                    <td align="left">
                        <asp:UpdatePanel ID="UpdatePanel2" runat="server">
                            <ContentTemplate>
                                <asp:TextBox ID="txt_Staff" runat="server" CssClass="rtxt_blue_disable" Width="630px" Enabled="false"></asp:TextBox>
                            </ContentTemplate>
                        </asp:UpdatePanel>
                    </td>
                </tr>
                <tr>
                    <td height="36" align="right">主　题：</td>
                    <td align="left"><asp:TextBox ID="txt_title" runat="server" CssClass="rtxt_blue" Width="630px"></asp:TextBox></td>
                </tr>
                <tr>
                    <td align="right" height="36">正　文：</td>
                    <td valign="baseline" align="left" rowspan="2">
                        <asp:HiddenField ID="txt_centent" runat="server" />
                        <textarea name="content" id="elm1" rows="12" cols="80"></textarea>
                    </td>
                </tr>
                <tr>
                    <td height="292">&nbsp;</td>
                </tr>
            </table>
        </div>
        <div class="command_bar">
            <table width="100%" cellpadding="0" cellspacing="0" border="0">
                <tr>
                    <td>
                    <asp:UpdatePanel ID="UpdatePanel3" runat="server">
                            <ContentTemplate>
                    <asp:Button ID="Btn_submint" runat="server" Text="发送" 
                    CssClass="rbtn_01" OnClientClick="return CheckMessage()" onclick="Btn_submint_Click" />
                     </ContentTemplate>
                        </asp:UpdatePanel>
                    </td>
                </tr>
            </table>
        </div>
    </div>
</div>
<div class="sms_foot">
    <img src="../images/images_58.jpg" width="944" height="8" class="float_left" />
</div>
</asp:Content>
